<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt' %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>Comment</title>
</head>

<body>
    <table>
        <c:forEach items="${model.comments}" var="comment">
            <tr>
                <td>${comment.commenterUser.name} ${comment.commenterUser.surname} - ${comment.comment} - ${comment.commentTime}</td>
                <c:if test="${comment.deleteable}">
                    <td><a href="/bob-web/service/ajax/comments.htm?method=delete&commentId=${comment.commentId}">Delete</a> </td>
                </c:if>
            </tr>
        </c:forEach>
    </table>
</body>
</html>
